﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

namespace WpfApplication1
{
    class MyButton : Button
    {
        

        protected override System.Windows.Size MeasureOverride(System.Windows.Size constraint)
        {
            var sz = base.MeasureOverride(constraint);
            
            //sz.Width += 10;
            return sz;
        }

        protected override System.Windows.Size ArrangeOverride(System.Windows.Size arrangeBounds)
        {
            return base.ArrangeOverride(arrangeBounds);
        }
    }
}
